home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2004 May / SGI IRIX 6.5 Applications 2004 May.iso / dev / java2_dev.idb / usr / demos / java2 / JNI-invocation-example / Prog.java.z / Prog.java
Text File  |  2004-02-24  |  345b  |  12 lines

  1. public class Prog {
  2.   public static void main(String[] args) {
  3.     if (args.length != 1) {
  4.       System.out.println("Usage: java Prog <one argument>");
  5.     } else {
  6.       System.out.println("Hello, World! (argument is: \"" + args[0] + "\")");
  7.       String value = System.getProperty("java.vm.name");
  8.       System.out.println(value);
  9.     }
  10.   }
  11. }
  12.